package com.xuecheng.manage_cms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by DELL on 2019/10/14.
 */

@SpringBootApplication
//多模块儿 不仅需要扫描当前包
@EntityScan("com.xuecheng.framework.domain.cms")//扫描实体类
@ComponentScan(basePackages="com.xuecheng.framework")//扫描common工程下的类
@ComponentScan(basePackages ={"com.xuecheng.api"})//扫描接口
@ComponentScan(basePackages ={"com.xuecheng.manage_cms"})
public class ManageCmsApplication {

    public static void main(String[] args){
        //与SpringBootApplication注解一同指定当前启动类类型
        //运行main方法会扫描启动类所在包及子包下的所有文件
        SpringApplication.run(ManageCmsApplication.class);
    }
}
